﻿<?php
class config{
	public static function getUtf8Head(){
		return '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
	}

	public static function getCommPath(){
		return '..//sxsvrcore//';
	}

	public static function getLogPath(){
		return 'logs//';
	}
	
	public static function isDebug(){
		return true;
	}

	public static function getDB($dbType){
		include_once(self::getCommPath()."pdodb.class.php");
		//本地服务器设置
		$dbset = array(
			//'msdbhost'=>'192.168.0.2\SQLEXP28R2',
			'msdbhost'=>'192.168.0.2',
			//'msdbhost'=>'123.206.116.95',			
			'msdbuser'=>'sa',
			//'msdbpass'=>'sql6218!',
			'msdbpass'=>'yjsh-5217',
			'msdbname'=>'JINYUN_ERP_SHXMY',
			'msdef'=>''
		);
		switch ($dbType) {
			case 'sqlsvr':
				return new pdodb('sqlsvr',$dbset['msdbhost'],$dbset['msdbname'],$dbset['msdbuser'],$dbset['msdbpass'],$dbset['msdef']);
		}
	}

	public static $RnoTbl=array('InsertOutContComm','InsertInContComm');
}